The Default Template field allows you to select the template that you wish to be used as your default. This will be used in the following three places:
  • Any access to the perlQ/index.cgi file will use this template. When this file is accessed, it will generate a list of the currently active surveys.

  • Any illegal or error access to fillsurvey.cgi not related to a specific survey will use this default template.

  • When creating a new survey, the Default Template will be selected as the template for that survey. You can always modify what template a specific survey is displayed in.
You can download more templates for perlQ as they become available at http://www.chumpsoft.com/products/perlq/.

The program checks in your perlQ/templates directory in order to determine what templates are available for use in your survey program. Removing the files from this directory will cause perlQ to stop functioning properly.

The values you can use inside of your template that perlQ will recognize are:
  • ::CHARSET:: - In order for browsers to properly select a character encoding when using multiple languages, you should include an HTML tag using the CHARSET language file parameter. More information can be found in the docs.

  • ::SURVEYNAME:: - perlQ will replace this text with the Survey Name. In the default template, this is placed in the <TITLE> tags.

  • ::CONTENT:: - perlQ will replace this text with the survey questions and answers. This tag is require in order to have they survey questions and answers appear on the page.

  • ::PAGENUMBER:: - Use this tag if you would like text such as "Page 1 of 3" to appear on multi-page surveys.

  • ::JSCRIPT:: - This will import any required JavaScript into the template. The only time this is needed is if your results are publicly viewable, so that the survey can popup extra results over the configured limit for textfields and other inputs. You are free to leave this out if you will not be offering public results in your template.